import 'package:contract_manager/pages/contract_detail/contract_detail_binding.dart';
import 'package:contract_manager/pages/contract_detail/contract_detail_view.dart';
import 'package:contract_manager/pages/contract_list/contract_list_binding.dart';
import 'package:contract_manager/pages/contract_list/contract_list_view.dart';
import 'package:contract_manager/pages/home/home.binding.dart';
import 'package:contract_manager/pages/home/home_view.dart';
import 'package:contract_manager/pages/import_contract/import_contract_binding.dart';
import 'package:contract_manager/pages/import_contract/import_contract_view.dart';
import 'package:contract_manager/pages/login/login_binding.dart';
import 'package:contract_manager/pages/login/login_view.dart';
import 'package:contract_manager/pages/notfound/notfound_view.dart';
import 'package:contract_manager/pages/reminder/reminder_binding.dart';
import 'package:contract_manager/pages/reminder/reminder_view.dart';
import 'package:get/get.dart';

part 'app_routes.dart';

class AppPages {
  static const INITIAL = AppRoutes.Login;

  static final routes = [
    // GetPage(
    //   name: AppRoutes.Proxy,
    //   page: () => ProxyPage(),
    // ),
    GetPage(
      name: AppRoutes.Login,
      page: () => LoginPage(),
      binding: LoginBinding(),
    ),
    GetPage(
      name: AppRoutes.Reminder,
      page: () => ReminderView(),
      binding: ReminderBinding(),
    ),
    GetPage(
      name: AppRoutes.ContractList,
      page: () => const ContractListPage(),
      binding: ContractListBinding(),
    ),
    GetPage(
      name: AppRoutes.ContractDetail,
      page: () => ContractDetailPage(),
      binding: ContractDetailBinding(),
    ),
    GetPage(
      name: AppRoutes.Home,
      page: () => HomeView(),
      binding: HomeBinding(),
    ),
    GetPage(
      name: AppRoutes.ImportContract,
      page: () => ImportContractPage(),
      binding: ImportContractBinding(),
    ),
  ];

  static final unknownRoute = GetPage(
    name: AppRoutes.NotFound,
    page: () => NotfoundPage(),
  );
}
